﻿package mortal.game.view.platform
{
    import Framework.Util.*;
    import Message.Game.*;
    import mortal.mvc.core.*;

    public class PlatformProxy extends Proxy
    {

        public function PlatformProxy()
        {
            return;
        }// end function

        public function getPlatformDownloadGift(param1:int, param2:Function) : void
        {
            rmi.iRolePrx.getPlatFormGift_async(new AMI_IRole_getPlatFormGift(param2, null, param1), param1);
            return;
        }// end function

        public function getPlatformGift(param1:int, param2:Function = null) : void
        {
            if (PlatformConst.isQQ())
            {
                rmi.iRolePrx.getTxVipGift_async(new AMI_IRole_getTxVipGift(param2, null, param1), param1);
            }
            else
            {
                rmi.iRolePrx.getPlatFormGift_async(new AMI_IRole_getPlatFormGift(param2, null, param1), param1);
            }
            return;
        }// end function

        public function verificCode(param1:String) : void
        {
            rmi.iRolePrx.activeNewbieCode_async(new AMI_IRole_activeNewbieCode(this.verificSucc, this.verificFail), param1);
            return;
        }// end function

        private function verificSucc(param1:AMI_IRole_activeNewbieCode) : void
        {
            return;
        }// end function

        private function verificFail(param1:Exception) : void
        {
            return;
        }// end function

    }
}
